﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EzDesk.Apps.Model.Attendance;

namespace EzDesk.Clients.MobileWeb.Extensions.Attendance
{
    public static class ViewModelExtensions
    {
        public static String GetAttendanceTypeString(this AttendanceType attendanceType)
        {
            var attendanceTypeStr = attendanceType == 0 ? "上班" : "下班";
            return attendanceTypeStr;

        }

        public static String GetBoolString(this bool boolMark)
        {
            var boolString = boolMark ? "是" : "否";
            return boolString;

        }
    }

}